package pruebas;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.ServerSocket;
import java.net.Socket;

public class MailSenderStub
{
	public static void main (String[]arg) throws IOException
	{
		System.out.println("mail sender stub");
		ServerSocket welcomeSocket = new ServerSocket(10022);

		
		while (true)
		{
			Socket connectionSocket = welcomeSocket.accept(); 
				
			BufferedReader inFromClient = new BufferedReader(new
				InputStreamReader(connectionSocket.getInputStream())); 
		
			System.out.println(inFromClient.readLine());
			connectionSocket.close();
		}		
		
		
	}
	

}